<!DOCTYPE html>
<html data-th-lang="${#locale.language}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title data-th-text="#{tutor.login.title}">导师登录</title>
    <link rel="stylesheet" href="../../webjars/bootstrap-material-design/dist/bootstrap-material-design.min.css"
          data-th-href="@{/webjars/bootstrap-material-design/dist/bootstrap-material-design.min.css}">
    <link rel="stylesheet" href="../../static/css/bg.css" data-th-href="@{/static/css/bg.css}">
    <style type="text/css">
        #alert-incorrect {
            text-align: center;
            background: rgba(255, 87, 36, 0.67);
        }

        #login-submit {
            background: rgba(0, 0, 0, .12);
        }

        #login-submit:hover {
            background: rgba(0, 0, 128, .22);
        }

        .alert {
            margin-bottom: 0;
            margin-top: .5rem;
        }
    </style>
</head>

<body>
<div id="bg"></div>
<div class="container" style="margin-top: 10%">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="row clearfix">
                <img class="col-lg-2 offset-lg-2 hidden-md-down" src="../../static/image/favicon.svg"
                     data-th-src="@{/static/image/favicon.svg}">
                <div class="col-lg-5 offset-lg-1 col-md-6 offset-md-3 column col-sm-10 offset-sm-1">
                    <h1 data-th-text="#{tutor.login.title}" style="text-align: center;">
                        导师登录
                    </h1>
                    <form class="form-horizontal" data-th-action="@{/tutor/login}" method="post">
                        <div data-th-if="${loginError}" class="alert alert-warning alert-dismissible show" role="alert"
                             style="text-align: center;background:#ff5722AA;" id="alert-incorrect">
                            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                <!--suppress XmlDefaultAttributeValue -->
                                <span aria-hidden="true">&times;</span>
                            </button>
                            <span data-th-text="#{login.incorrect}">用户名或密码错误</span>
                        </div>

                        <fieldset class="form-group">
                            <label for="username" class="bmd-label-floating" data-th-text="#{username}">用户名</label>
                            <input class="form-control" id="username" name="username" required/>
                        </fieldset>
                        <fieldset class="form-group">
                            <label for="password" class="bmd-label-floating" data-th-text="#{password}">密码</label>
                            <input type="password" class="form-control" id="password" name="password" required/>
                        </fieldset>
                        <div class="form-group">
                            <button class="btn btn-primary btn-block" data-th-text="#{login}"
                                    id="login-submit">登录
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <footer class="row clearfix" data-th-replace="~{footer::narrow}">
        <div class="col-md-8 offset-md-2 column">
            <ul class="breadcrumb">
                <li class="breadcrumb-item">
                    <a href="#" data-th-text="#{footer.about}">关于我们</a>
                </li>
                <li class="breadcrumb-item">
                    <a href="#" data-th-text="#{footer.feedback}">意见反馈</a>
                </li>
                <li class="breadcrumb-item">
                    <a href="#" data-th-text="#{footer.help}">帮助中心</a>
                </li>
                <li class="breadcrumb-item">
                    <a href="#" data-th-text="#{footer.us}">联系我们</a>
                </li>
                <li class="breadcrumb-item active">
                    All rights reserved
                </li>
            </ul>
        </div>
    </footer>
</div>
<script src="../../webjars/jquery/dist/jquery.min.js" data-th-src="@{/webjars/jquery/dist/jquery.min.js}"></script>
<script src="../../webjars/tether/dist/js/tether.min.js"
        data-th-src="@{/webjars/tether/dist/js/tether.min.js}"></script>
<script src="../../webjars/bootstrap-material-design/dist/bootstrap-material-design.iife.min.js"
        data-th-src="@{/webjars/bootstrap-material-design/dist/bootstrap-material-design.iife.min.js}"></script>
<!--suppress JSUnresolvedFunction -->
<script>
    $('body').bootstrapMaterialDesign();
</script>
</body>
</html>
